//
//  WBTabBar.h
//  1229-Weibo.
//
//  Created by 千锋 on 15/12/29.
//  Copyright (c) 2015年 千锋. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol WBTabBarDelegate <NSObject>

-(void)passIndex:(NSInteger)index;

@end

typedef void(^PassIndex)(NSInteger index);

@interface WBTabBar : UIView
//用来接收self.superView(RootTabBarController)中的每一个TabBarItem 里面的 title image seletedImage 等信息，方便传值
@property(nonatomic,strong)UITabBarItem * tabBarItem;

@property(nonatomic,weak)id <WBTabBarDelegate>delegate;

@property(nonatomic,copy)PassIndex block;

@end
